package com.atguigu.yygh.cmn.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 杨林
 * @create 2022-11-08 19:33 星期二
 * description:
 */
@FeignClient("service-cmn")  //表明这是一个Feign的客户端
public interface DictFeignClient {

    @GetMapping("/admin/cmn/dict/getName/{parentDictCode}/{value}")
    String getName(@PathVariable String parentDictCode,@PathVariable String value);

    @GetMapping("/admin/cmn/dict/getName/{value}")
    String getName(@PathVariable String value);
}
